package com.zero.test2;

public class Fish extends Animal implements Swim{
    public Fish() {
    }

    public Fish(String name, String age, String color) {
        super(name, age, color);
    }

    @Override
    public void eat() {
        System.out.println("鱼在吃虾米");
    }

    @Override
    public void swim() {
        System.out.println(getColor()+"色的"+ getAge()+ "岁的鱼"+getName()+"在游泳");
    }
}
